<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Result
 *
 * @author ananda
 */
abstract class Data_Collection extends Data implements Iterator
{
    protected $handler;

    public function __construct($handler, $params = array()) {
        $this->handler = $handler;
        foreach ($params as $key => $value) {
            $this->$key = $value;
        }
        $this->init();
    }

    abstract public function init();
    abstract public function rowCount();
    abstract public function getArray();
}
